<!-- eslint-disable vue/multi-word-component-names -->
<template>
  <v-layout>
    <div style="width: 100%;background-color: rgb(239, 239, 239);padding: 10px;">
      <v-table fixed-header height="80vh">
        <thead>
          <tr>
            <th v-for="title in coursrTitle" :key="title" style="font-size: small;">
              {{ title }}
            </th>
          </tr>
        </thead>
        <tbody>
          <tr v-for="item in courses" :key="item.id" style="font-size: small;">
            <td>{{ item.id }}</td>
            <td>{{ item.semester }}</td>
            <td>{{ item.classGarde }}</td>
            <td>{{ item.number }}</td>
            <td>{{ item.className }}</td>
            <td>{{ item.college }}</td>
            <td>{{ item.credits }}</td>
            <td>{{ item.hours }}</td>
            <td>{{ item.assesmentWay }}</td>
            <td>{{ item.properties }}</td>
            <td>{{ item.mustLearn }}</td>
            <td>{{ item.exam }}</td>
            <td>{{ item.language }}</td>
          </tr>
        </tbody>
      </v-table>
    </div>
  </v-layout>
</template>
<script lang="ts" setup>
let coursrTitle = [
  '序号',
  '开课学期',
  '上课年级',
  '课程编号',
  '课程名称',
  '开课单位',
  '学分',
  '总学时',
  '考核方式',
  '课程性质',
  '课程属性',
  '是否考试',
  '授课语言'
]
let courses = [
  {
    id: 1,
    semester: '2022-2023-1',
    classGarde: '大一上',
    number: 'sd00920120',
    className: '高等数学(1)',
    college: '数学学院',
    credits: 5,
    hours: 80,
    assesmentWay: '考试',
    properties: '学科基础课',
    mustLearn: '必修',
    exam: '是',
    language: '中文'
  },
  {
    id: 2,
    semester: '2022-2023-1',
    classGarde: '大一上',
    number: 'sd02810460',
    className: '中国近现代史纲要',
    college: '马克思主义学院',
    credits: 3,
    hours: 64,
    assesmentWay: '考试',
    properties: '通识必修课',
    mustLearn: '必修',
    exam: '是',
    language: '中文'
  },
  {
    id: 3,
    semester: '2022-2023-1',
    classGarde: '大一上',
    number: 'ssd02910630',
    className: '体育(1)',
    college: '体育学院',
    credits: 1,
    hours: 32,
    assesmentWay: '考试',
    properties: '学科基础课',
    mustLearn: '必修',
    exam: '是',
    language: '中文'
  },
  {
    id: 4,
    semester: '2022-2023-1',
    classGarde: '大一上',
    number: 'sd03010371',
    className: '计算机引论(双语)',
    college: '软件学院',
    credits: 2,
    hours: 32,
    assesmentWay: '考试',
    properties: '专业基础课',
    mustLearn: '必修',
    exam: '是',
    language: '中英双语'
  },
  {
    id: 5,
    semester: '2022-2023-1',
    classGarde: '大一上',
    number: 'sd03030070',
    className: 'LINUX应用',
    college: '软件学院',
    credits: 1.5,
    hours: 32,
    assesmentWay: '考试',
    properties: '专业选修课',
    mustLearn: '限选',
    exam: '是',
    language: '中文'
  },
  {
    id: 6,
    semester: '2022-2023-1',
    classGarde: '大一上',
    number: 'sd03032480',
    className: '高级程序设计(双语)',
    college: '软件学院',
    credits: 4,
    hours: 72,
    assesmentWay: '考试',
    properties: '专业基础课',
    mustLearn: '必修',
    exam: '是',
    language: '中英双语'
  },
  {
    id: 7,
    semester: '2022-2023-1',
    classGarde: '大一上',
    number: 'sd03111810',
    className: '大学综合英语(1)',
    college: '大外部',
    credits: 2,
    hours: 32,
    assesmentWay: '考试',
    properties: '通识必修课',
    mustLearn: '必修',
    exam: '是',
    language: '英文'
  },
  {
    id: 8,
    semester: '2022-2023-2',
    classGarde: '大一下',
    number: 'sd00920120',
    className: '高等数学(1)',
    college: '数学学院',
    credits: 5,
    hours: 80,
    assesmentWay: '考试',
    properties: '学科基础课',
    mustLearn: '必修',
    exam: '是',
    language: '中文'
  },
  {
    id: 9,
    semester: '2022-2023-2',
    classGarde: '大一下',
    number: 'sd01020140',
    className: '大学物理',
    college: '物理学院',
    credits: 4,
    hours: 64,
    assesmentWay: '考试',
    properties: '学科基础课',
    mustLearn: '必修',
    exam: '是',
    language: '中文'
  },
  {
    id: 10,
    semester: '2022-2023-2',
    classGarde: '大一下',
    number: 'sd03020980',
    className: '线性代数',
    college: '软件学院',
    credits: 3,
    hours: 48,
    assesmentWay: '考试',
    properties: '学科基础课',
    mustLearn: '必修',
    exam: '是',
    language: '中文'
  },
  {
    id: 11,
    semester: '2022-2023-2',
    classGarde: '大一下',
    number: 'sd03030441',
    className: '离散数学(双语1)',
    college: '软件学院',
    credits: 3,
    hours: 48,
    assesmentWay: '考试',
    properties: '学科基础课',
    mustLearn: '必修',
    exam: '是',
    language: '中英双语'
  },
  {
    id: 12,
    semester: '2022-2023-2',
    classGarde: '大一下',
    number: 'sd03032400',
    className: 'C++程序设计',
    college: '软件学院',
    credits: 2.5,
    hours: 48,
    assesmentWay: '考试',
    properties: '专业选修课',
    mustLearn: '限选',
    exam: '是',
    language: '中文'
  },
  {
    id: 13,
    semester: '2022-2023-2',
    classGarde: '大一下',
    number: 'sd06910010',
    className: '军事理论',
    college: '党委学生工作部',
    credits: 2,
    hours: 32,
    assesmentWay: '考试',
    properties: '通识必修课',
    mustLearn: '必修',
    exam: '是',
    language: '中文'
  },
  {
    id: 14,
    semester: '2023-2024-1',
    classGarde: '大二上',
    number: '	sd03020250',
    className: '概率与统计',
    college: '软件学院',
    credits: 3,
    hours: 48,
    assesmentWay: '考试',
    properties: '学科基础课',
    mustLearn: '必修',
    exam: '是',
    language: '中文'
  },
  {
    id: 15,
    semester: '	2023-2024-1',
    classGarde: '大二上',
    number: 'sd03030090',
    className: 'Web技术',
    college: '软件学院',
    credits: 3,
    hours: 64,
    assesmentWay: '考试',
    properties: '专业选修课',
    mustLearn: '限选',
    exam: '是',
    language: '中文'
  },
  {
    id: 16,
    semester: '2023-2024-1',
    classGarde: '大二上',
    number: 'sd03030400',
    className: '计算机组织与结构',
    college: '软件学院',
    credits: 4.5,
    hours: 80,
    assesmentWay: '考试',
    properties: '专业基础课',
    mustLearn: '必修',
    exam: '是',
    language: '中文'
  },
  {
    id: 17,
    semester: '2023-2024-1',
    classGarde: '大二上',
    number: 'sd03030721',
    className: '数据结构(双语)',
    college: '软件学院',
    credits: 4.5,
    hours: 80,
    assesmentWay: '考试',
    properties: '专业基础课',
    mustLearn: '必修',
    exam: '是',
    language: '中英双语'
  },
  {
    id: 18,
    semester: '2023-2024-1',
    classGarde: '大二上',
    number: 'sd03032550',
    className: '软件工程专业导读',
    college: '软件学院',
    credits: 1,
    hours: 16,
    assesmentWay: '考查',
    properties: '专业基础课',
    mustLearn: '必修',
    exam: '是',
    language: '中文'
  }
]
</script>
